/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.structural.FlyWeight.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.structural.FlyWeight.FlyWeightAdder;
import za.ac.cput.DesignPatterns.structural.FlyWeight.FlyWeightFactory;
import za.ac.cput.DesignPatterns.structural.FlyWeight.FlyWeightMultiplier;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class FlyWeightConf {
    
    @Bean 
    public FlyWeightAdder adder(){
    return new FlyWeightAdder();
    }  
    @Bean 
    public FlyWeightMultiplier flyWeightMultiplier(){
    return new FlyWeightMultiplier();
    }
    @Bean 
    public FlyWeightFactory fwf(){
    return new FlyWeightFactory();
    }
}
